package com.wwj.web.mapper;

import com.wwj.web.domain.ShiroRole;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShiroRoleMapper {
    int deleteByPrimaryKey(Integer roleid);

    int insert(ShiroRole record);

    int insertSelective(ShiroRole record);

    ShiroRole selectByPrimaryKey(Integer roleid);

    int updateByPrimaryKeySelective(ShiroRole record);

    int updateByPrimaryKey(ShiroRole record);

    /***
     * 根据用户id查询用户角色
     * @param userId
     * @return
     */
    List<String> getRolesByUserId(Integer userId);
}